<template>
  <div>
    <el-form class="viewForm" label-width="80px">
                        <el-col :span="20">
                <el-form-item label="名称">
                    <div v-html="viewModel.name"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="封面">
                    <div v-html="viewModel.logo"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="面额">
                    <div v-html="viewModel.money"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="商家">
                    <div v-html="viewModel.shopName"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="使用门槛">
                    <div v-html="viewModel.minPrice"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="每人限领">
                    <div v-html="viewModel.limitNum"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="发放开始时间">
                    <div v-html="viewModel.sendBeginTime"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="发放截止时间">
                    <div v-html="viewModel.sendEndTime"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="有效期">
                    <div v-html="viewModel.expireTypeName"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="优惠券开始时间">
                    <div v-html="viewModel.useBeginTime"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="优惠券截止时间">
                    <div v-html="viewModel.useEndTime"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="固定天数">
                    <div v-html="viewModel.useDay"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="卡券库存">
                    <div v-html="viewModel.stock"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="使用说明">
                    <div v-html="viewModel.note"></div>
                </el-form-item>
            </el-col>
            <el-col :span="20">
                <el-form-item label="活动范围">
                    <div v-html="viewModel.couponScope"></div>
                </el-form-item>
            </el-col>
    </el-form>
  </div>
</template>

<script>
  import common from "@/mixins/common.js";

  export default {
    mixins: [common],
    data() {
      return {
        viewModel: {},
        activeIndex: "1",
      };
    },
    mounted() {
      var id = this.$route.query.id;
      var self = this;
      var data = {};
      data.id = id;

      this.postData("/tenantRest/dishcouponrule/view.htm", data, function (res) {
        if (res.code == 0) {
          self.viewModel = res;

        }
      });
    },
  };
</script>

<style>
</style>